package com.base.service.workflow.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.base.core.framework.sql.service.impl.SqlBaseServiceImplV1Ext;
import com.base.service.workflow.dao.SequenceFlowDao;
import com.base.service.workflow.entity.SequenceFlowDO;
import com.base.service.workflow.service.SequenceFlowService;
import com.gitee.magic.jdbc.persistence.source.jdbc.sqlplus.conditions.query.QueryWrapper;

/**
 * @author start 
 */
@Service("sequenceFlowService")
public class SequenceFlowServiceImpl extends SqlBaseServiceImplV1Ext<SequenceFlowDO,Long> 
implements SequenceFlowService {

	private SequenceFlowDao sequenceFlowDao;
	
	public SequenceFlowServiceImpl(@Qualifier("sequenceFlowDao")SequenceFlowDao sequenceFlowDao) {
		super(sequenceFlowDao);
		this.sequenceFlowDao=sequenceFlowDao;
	}

	@Override
	public List<SequenceFlowDO> queryBySourceRefId(Long sourceRefId) {
		QueryWrapper wrapper=new QueryWrapper();
		wrapper.eq("sourceRefId", sourceRefId);
		return sequenceFlowDao.queryForList(wrapper);
	}

}
